home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume91
/
utilitys
/
makemenu
/
part01
/
menu.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-04
|
5KB
|
115 lines
/*****************************************/
/* This code was generated by: */
/* MakeMenu V1.0 (Hans Jansen 7-oct-90) */
/*****************************************/
#include <exec/types.h>
#include <intuition/intuition.h>
struct IntuiText IText[] =
{
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "New", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Open", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Save", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "SaveAs", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Print", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "NLQ", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Draft", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "About...", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Quit", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Undo", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Cut", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Copy", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Paste", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Erase All", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Sound", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Auto Save", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Have Your Cake", NULL },
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "Eat It Too", NULL }
};
struct MenuItem M0I4[] =
{
{&M0I4[ 1], 56, 2, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED,
0, (APTR)&IText[ 5], NULL, NULL, NULL, MENUNULL},
{NULL, 56, 12, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED,
0, (APTR)&IText[ 6], NULL, NULL, NULL, MENUNULL}
};
struct MenuItem M0[] =
{
{&M0[ 1], 0, 0, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED,
0, (APTR)&IText[ 0], NULL, NULL, NULL, MENUNULL},
{&M0[ 2], 0, 10, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|COMMSEQ,
0, (APTR)&IText[ 1], NULL, 'O', NULL, MENUNULL},
{&M0[ 3], 0, 20, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|COMMSEQ,
0, (APTR)&IText[ 2], NULL, 'S', NULL, MENUNULL},
{&M0[ 4], 0, 30, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED,
0, (APTR)&IText[ 3], NULL, NULL, NULL, MENUNULL},
{&M0[ 5], 0, 40, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED,
0, (APTR)&IText[ 4], NULL, NULL, &M0I4[0], MENUNULL},
{&M0[ 6], 0, 50, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED,
0, (APTR)&IText[ 7], NULL, NULL, NULL, MENUNULL},
{NULL, 0, 60, 80+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|COMMSEQ,
0, (APTR)&IText[ 8], NULL, 'Q', NULL, MENUNULL}
};
struct MenuItem M1[] =
{
{&M1[ 1], 0, 0, 72+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|COMMSEQ,
0, (APTR)&IText[ 9], NULL, 'Z', NULL, MENUNULL},
{&M1[ 2], 0, 10, 72+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|COMMSEQ,
0, (APTR)&IText[10], NULL, 'X', NULL, MENUNULL},
{&M1[ 3], 0, 20, 72+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|COMMSEQ,
0, (APTR)&IText[11], NULL, 'C', NULL, MENUNULL},
{&M1[ 4], 0, 30, 72+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|COMMSEQ,
0, (APTR)&IText[12], NULL, 'V', NULL, MENUNULL},
{NULL, 0, 40, 72+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP,
0, (APTR)&IText[13], NULL, NULL, NULL, MENUNULL}
};
struct MenuItem M2[] =
{
{&M2[ 1], 0, 0, 112+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED,
0, (APTR)&IText[14], NULL, NULL, NULL, MENUNULL},
{&M2[ 2], 0, 10, 112+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|MENUTOGGLE|CHECKIT|CHECKED,
0, (APTR)&IText[15], NULL, NULL, NULL, MENUNULL},
{&M2[ 3], 0, 20, 112+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|CHECKIT|CHECKED,
0, (APTR)&IText[16], NULL, NULL, NULL, MENUNULL},
{NULL, 0, 30, 112+CHECKWIDTH, 10,
ITEMTEXT|HIGHCOMP|ITEMENABLED|CHECKIT,
0, (APTR)&IText[17], NULL, NULL, NULL, MENUNULL}
};
struct Menu TheMenu[] =
{
{ &TheMenu[ 1], 0, 0, 80+CHECKWIDTH, 10,
MENUENABLED," Project ", &M0[0]},
{ &TheMenu[ 2], 112, 0, 72+CHECKWIDTH, 10,
MENUENABLED," Edit ", &M1[0]},
{ NULL , 216, 0, 112+CHECKWIDTH, 10,
MENUENABLED," Preferences ", &M2[0]}
};
struct Menu *MyMenu = &TheMenu[0];
/*****************************************/
/* End of generated code */
/*****************************************/